package com.iotechn.unimall.data.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.iotechn.unimall.data.domain.PurchaseOrderReturnGoodsDO;
import com.iotechn.unimall.data.dto.excel.SkuTotalPriceDTO;
import com.iotechn.unimall.data.dto.statistics.TimeDataDTO;
import com.iotechn.unimall.data.dto.warehouse.PurchaseWarehouseOrderGoodsDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * 退货商品表
 *
 * @author wxw
 * @email
 * @date 2020-07-11 13:22:39
 */
public interface PurchaseOrderReturnGoodsMapper extends BaseMapper<PurchaseOrderReturnGoodsDO> {

    //汇总供应商入库商品
    List<PurchaseWarehouseOrderGoodsDTO> listGoodsBySupplierId(@Param("supplierId") Long supplierId, @Param("warehouseId") Long warehouseId, @Param("offset") Integer offset, @Param("size") Integer size, @Param("search") String search);

    //合计汇总供应商入库商品
    Integer countListGoodsBySupplierId(@Param("supplierId") Long supplierId, @Param("warehouseId") Long warehouseId, @Param("search") String search);


    List<PurchaseWarehouseOrderGoodsDTO> listGoodsReturnSupplier(@Param("warehouseId") Long warehouseId,@Param("search") String search);
/*
    List<SkuTotalPriceDTO> summaryGoods(@Param("startTime") String startTime, @Param("endTime") String endTime, @Param("skuIds") List<Long> skuIds, @Param("barCodes") List<String> barCodes, @Param("customerType") Integer customerType, @Param("customerId") Long customerId);
    //汇总退回商品
    List<TimeDataDTO> summaryReturnOrderGoodsByTime(@Param("startTime") String startTime, @Param("endTime") String endTime, @Param("customerId") Long customerId, @Param("customerType") Integer customerType, @Param("search") String search);
*/

}
